<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>带返回值的函数return</title>
</head>
<body>
<script>
    function demo() {
        alert("我会执行吗？");//防return前面这个会执行的
        return"hello";
       // alert("我会执行吗？");//在return后面的函数不执行
    }
    var vl1=demo()+":iwen";
    var vl2=demo()+":imi"
    alert(vl1);
    alert(vl2);
</script>
<p id="pid"></p>
    <script>

        function hesum1(a,b){
            if(a>b){
                return "a比较大";
            }else{
                return "b比较大";
            }
        }
        document.getElementById("pid").innerHTML=hesum1(16,9)
    </script>

</body>
</html>